<if condition="!empty($group)">
<div class="row">
	<div class="col-md-12">
		<div class="clxq-view">
			<div class="img">
				<php> if($group['logo']){</php>
				<img src="{$group.logo|getThumbImageById=130,130}" alt="{$group.title|op_t}">
				<php>}else{</php>
				<img src="__IMG__/default.png" alt="{$group.title|op_t}">
				<php>}</php>
				<php>if(check_auth('Group/Manager/*',get_group_admin($group['id']))){</php>
            	<a class="pull-left abtn" style="background: #48CA93;" href="{:U('Group/Manage/index',array('group_id'=>$group['id']))}" style="margin-right: 5px"> 管理树丛</a>
            	<php>}</php>
            	<if condition="is_login() neq $group['uid']">
                <php>if(is_joined($group['id']) == 1){</php>
                <a class="pull-left  abtn" style="background:#666" data-role="group_quit" data-group-id="{$group.id}">退出树丛</a>
                <php> }elseif(is_joined($group['id']) == 2){</php>
                <a class="pull-left abtn" style="background: #48CA93;">树丛审核中</a>
                <php>}else{</php>
                <a class="pull-left abtn" data-role="group_attend" data-group-id="{$group.id}">加入树丛</a>
                <php>}</php>
            	</if>
            	<span>
					{$group.type_id|get_type_name}
				</span>
			</div>
			<div class="text">
				<h2>树丛名称：<a href="{:U('group/index/group',array('id'=>$group['id']))}" title="{$group.title}">{$group.title}</a></h2>
				<ul>
					<li>{:Hook('support',array('app'=>'Group',table=>'group','row'=>$group['id'],'uid'=>$group['uid'],'jump'=>'group/index/group'))}棵树苗参与浇花</li>
					<li><img src="__THEME_PUBLIC__/images/img28.png"/> {$group.view_count} 阳光值</li>
				</ul>
				<div class="desc">
					<span class="label1">树丛介绍 ：</span>
					<p>{$group.detail}</p>
				</div>
			</div>
			<div class="nav">
				<ul>
					<li>
						<a href="#">
							<h2>视频话题</h2>
							<h4>{$group.post_count_video}</h4>
						</a>
					</li>
					<li>
						<a href="#">
							<h2>图文话题</h2>
							<h4>{$group.post_count_img}</h4>
						</a>
					</li>
					<li class="last">
						<a href="{:U('group',array('type'=>'member','id'=>$group_id))}">
							<h2>加入该树丛</h2>
							<h4>{$group.member_count} 个成员</h4>
						</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="clxq-info">
				<div class="info info1">
					<div class="head">
						<h2>树丛公告栏</h2>
					</div>
					<div class="body">
						<if condition="$notice neq null">
    						{$notice.content}
    					<else />
    						<div class="text-center">暂无公告</div>
    					</if>
					</div>
				</div>
				<div class="info info2">
					<div class="head">
						<h2>我的树丛</h2>
					</div>
					<if condition="is_login()">
						<php>
                            $map_mid=is_login();
                            $modelMy=D('group_post');
                            $postcount=$modelMy->where("(uid = ".$map_mid." and status = 1) or (uid = ".$map_mid." and status = 0)")->count();
                            $replycount=D('group_post_reply')->where("uid= ".$map_mid." and (status=1 or status=0)")->count();
                        </php>
					<div class="body">
						<ul>
							<li><i><img src="__THEME_PUBLIC__/images/img37.png"/></i>我参与的话题   {$replycount}</li>
							<li style="margin-right: 0;"><i><img src="__THEME_PUBLIC__/images/img38.png"/></i>我发布的话题   {$postcount}</li>
						</ul>
					</div>
					<else />
					<div class="ts">
						<a href="{:U('/Ucenter/Member/login')}">登录</a>查看你的树丛动态吧！
					</div>
					</if>
				</div>
			</div>
	</div>
</div>
</if>

